package com.zelix;

import java.awt.Component;
import java.io.File;
import javax.swing.*;

class r1 extends DefaultListCellRenderer {

    private final v1 a;
    b0 b;
    xz c;

    r1(v1 v1_1) {
        a = v1_1;
        c = new xz();
        b = new b0();
    }

    public Component getListCellRendererComponent(JList jlist, Object obj, int i, boolean flag, boolean flag1) {
        File file;
        int j;
//        int k;
//        k = qz.a;
        super.getListCellRendererComponent(jlist, obj, i, flag, flag1);
        file = (File) obj;
        if (file == null) {
            setText("");
            return this;
        }
        j = 0;
        File file1 = file.getParentFile();
        while (file1 != null) {
            j++;
            file1 = file1.getParentFile();
        }
        javax.swing.Icon icon = b.a(file);
        c.a = icon;
        c.b = j;
        setIcon(c);
        return this;
    }
}